package com.slz3.business.module.goodsManagement.gooTypeLevel2.service;

import com.slz3.business.module.goodsManagement.gooTypeLevel2.domain.GooTypeLevel2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.util.MultiValueMap;

import java.util.List;
import java.util.Optional;
import java.util.UUID;
import java.util.stream.Stream;

/**
 * 非事务型 service
 */
public interface GooTypeLevel2Service {

    GooTypeLevel2 save(GooTypeLevel2 gooTypeLevel2);

    Page<GooTypeLevel2> page(MultiValueMap<String,String> queryParams);

    GooTypeLevel2 modify(GooTypeLevel2 gooTypeLevel2);

    Optional<GooTypeLevel2> single(UUID uuid);

    List<GooTypeLevel2> findAllByUuids(Iterable<UUID> uuids);

    List<GooTypeLevel2> delete(List<GooTypeLevel2> gooTypeLevel2List);
}
